package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import java.util.Date;

/**
 * Created by lenovo on 2016/4/27.
 */
public class PersonalOrAssignSearchActivity extends SingleFragmentActivity {
  private String mStartDate;
  //    private String mEndDate;
  //    private String mAfterEndDate;
  private Date date;
  private String type;

  @Override protected Fragment createFragment() {
    mStartDate = getIntent().getStringExtra(PersonalOrAssignSearchFragment.EXTRA_STARTTIME);
    //        mEndDate=getIntent().getStringExtra(PersonalOrAssignSearchFragment.EXTRA_ENDTIME);
    //        mAfterEndDate=getIntent().getStringExtra(PersonalOrAssignSearchFragment.EXTRA_AFTERENDTIME);
    date = (Date) getIntent().getSerializableExtra(PersonalOrAssignSearchFragment.EXTRA_DATE);
    type = getIntent().getStringExtra(PersonalOrAssignSearchFragment.EXTRA_TYPE);

    return PersonalOrAssignSearchFragment.newInstance(mStartDate, date, type);
  }
}
